﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AccountAdmin/AdminMaster.master" AutoEventWireup="true" CodeBehind="Insert.aspx.cs" Inherits="PRJ_LDW_Eutoliso.AccountAdmin.Veiculo.Modelo.Insert" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headTile" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="headScript" runat="server">
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body_pre_central" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="body_central_first" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="body_central" runat="server">

    <%--    </ContentTemplate>
                            </asp:UpdatePanel>--%>

    <!-- Start Box -->
    <div class="boxes-full">

        <div class="boxes-padding fullpadding">

            <!-- Start None Split Section -->
            <div class="splitnone">

                <div id="portfolio-container">


                    <!-- Start 4 column portfolio -->
                    <div class="element web">

                        <div class="col1">
                            <div class="wrapper_01">
                                <h3>
                                    <div class="wrapper_01">
                                        <li class="under_02"><a href="/AccountAdmin/Home.aspx" title="" class="active">Página Inicial</a></li>
                                        <li class="under_02"><a href="#">Anúncios</a></li>
                                        <li class="under_02"><a href="#">Meus Dados</a></li>
                                        <li class="under_02"><a href="/AccountAdmin/Veiculo/Tipo/Home.aspx" title="" class="active">Categorias</a></li>
                                        <li class="under_02"><a href="/AccountAdmin/Veiculo/Modelo/Home.aspx" title="" class="active">Marcas</a></li>
                                        <li class="under_02"><a href="/AccountAdmin/Veiculo/Home.aspx" title="" class="active">Veículos</a></li>
                                        <%--<li class="under_02"> <asp:LoginStatus ID="LoginStatus2" runat="server" LogoutAction="Redirect" LogoutText="Sair" LogoutPageUrl="/Public/Home.aspx" /> </li>--%>
                                    </div>
                                </h3>

                            </div>
                        </div>

                    </div>

                    <div class="element graphic">
                    </div>

                    <div class="element logo">
                        <h2>Inserir Modelo </h2>

                        <br />
                        <br />
                        <table>
                            <tr>
                                <td>
                                    <h3>
                                        <asp:Label ID="Label2" runat="server" Text="Nome" />
                                    </h3>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNome" runat="server" CssClass="contacttextform" Width="250px"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <h3>
                                        <asp:Label ID="Label1" runat="server" Text="Marca" />
                                    </h3>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlMarca" runat="server" DataSourceID="EntityDataSource1" Height="32px" CssClass="contacttextform" Width="275px" DataTextField="Nome" DataValueField="Nome" AppendDataBoundItems="True">
                                        <asp:ListItem Value="0">Selecione</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>



                            <tr>
                                <td style="width: 100px">
                                    <h3>
                                        <asp:Label ID="Label9" runat="server" Text="Versão" />
                                    </h3>
                                </td>
                                <td class="auto-style1">
                                    <asp:TextBox ID="txtVersao" runat="server" CssClass="contacttextform" Width="250px"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td style="width: 100px">
                                    <h3>
                                        <asp:Label ID="Label10" runat="server" Text="Observação" />
                                    </h3>
                                </td>
                                <td class="auto-style1">
                                    <asp:TextBox ID="txtObs" runat="server" Height="117px" TextMode="MultiLine" CssClass="contacttextform" Width="250px"></asp:TextBox>
                                </td>
                            </tr>

                        </table>
                        <table>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="btnInserir" runat="server" Text="Inserir" OnClick="btnInserir_Click" CssClass="smallsmoothrectange orangebutton" />
                                </td>
                                <td>
                                    <asp:LinkButton ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click" CssClass="smallsmoothrectange orangebutton" />
                                </td>

                            </tr>

                        </table>
                        <br />
                        &nbsp;<a href="Home.aspx" class="smallsmoothrectange orangebutton">Mostrar todos</a>
                        <br />
                        <br />
                        <h4>
                            <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Text="Item inserido com sucesso!" Visible="False"></asp:Label><br />
                        </h4>
                        <br />
                        <h4>
                            <asp:Label ID="lblMsgException" runat="server" ForeColor="Red" Text="Ocorreu um problema ao inserir o item.!" Visible="False"></asp:Label></h4>
                        <br />


                        <asp:SqlDataSource ID="sqlMarca" runat="server" ConnectionString="<%$ ConnectionStrings:eutolisodbConnectionString %>" SelectCommand="SELECT [Id], [Nome] FROM [marca] ORDER BY [Nome]"></asp:SqlDataSource>
                        <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=eutolisodbEntities1" DefaultContainerName="eutolisodbEntities1" EnableFlattening="False" EntitySetName="marca" Select="it.[Id], it.[Nome]">
                        </asp:EntityDataSource>


                    </div>

                    <!-- End 4 column portfolio -->

                </div>

            </div>
            <!-- End None Split Section -->

        </div>

    </div>
    <!-- End Box -->


</asp:Content>

